package cn.rkylin.oms.refund.service;

import java.util.List;

import com.github.pagehelper.PageInfo;

import cn.rkylin.oms.ectrade.vo.EcTradeVO;
import cn.rkylin.oms.refund.vo.EcRefundItemVO;
import cn.rkylin.oms.refund.vo.RefundVO;

/**
 * 平台退款单服务层接口
 * 
 * @author jipengcheng
 * @created 2017.04.12
 *
 */
public interface IRefundService {
	/**
	 * 根据RefundCode找EcRefund
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public List<RefundVO> findByRefundCode(RefundVO refund) throws Exception;

	/**
	 * 根据ID找EcItem
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public RefundVO getEcRefundById(String id) throws Exception;

	/**
	 * 退款单
	 *
	 * @param ecTradeVO
	 * @throws Exception
	 */
	public PageInfo<RefundVO> findByWhere(int page, int rows, RefundVO ecRefundVO) throws Exception;
	
	/**
     * 各种count
     *
     * @param ecTradeVO
     * @throws Exception
     */
    public List<RefundVO> findCounts(RefundVO ecRefundVO) throws Exception;
    
    /**
	 * 退款单详情
	 *
	 * @param ecTradeVO
	 * @throws Exception
	 */
	public PageInfo<EcRefundItemVO> findByWhere(int page, int rows, EcRefundItemVO ecRefundItemVO) throws Exception;
}
